<include file="Public/header"/>
<div class="wrapper m-t">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <a class="h5 font-bold">新增用户</a>
        </div>
        <div class="ibox-content">
            <form class="form-horizontal form-user" method="post" action="{:U()}">
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户名</label>
                    <div class="col-sm-6">
                        <input type="text" name="username" class="form-control">
                    </div>
                    <div class="col-sm-4">
                        <span class="help-block m-b-none">（用户名会作为默认的昵称）</span>
                    </div>
                </div>
                <div class="line line-dashed line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">密码</label>
                    <div class="col-sm-6">
                        <input type="password" name="password" class="form-control">
                    </div>
                    <div class="col-sm-4">
                        <span class="help-block m-b-none">（用户密码不能少于6位）</span>
                    </div>
                </div>
                <div class="line line-dashed line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">确认密码</label>
                    <div class="col-sm-6">
                        <input type="password" name="repassword" class="form-control">
                    </div>
                </div>
                <div class="line line-dashed line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户组</label>
                    <div class="col-sm-6">
                        <select  name="group_id" class="form-control">
                            <option value="">请选择</option>
                            <volist name="_list" id="vo">
                                <option value="{$vo.id}">{$vo.title}</option>
                            </volist>
                        </select>
                    </div>
                    <div class="col-sm-4">
                        <span class="help-block m-b-none">员工所属岗位</span>
                    </div>
                </div>
                <div class="line line-dashed line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">电话号码</label>
                    <div class="col-sm-6">
                        <input type="tel" name="phone_number" class="form-control">
                    </div>
                    <div class="col-sm-4">
                        <span class="help-block m-b-none">（员工手机号）</span>
                    </div>
                </div>
                <div class="line line-dashed line-lg pull-in"></div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">邮箱</label>
                    <div class="col-sm-6">
                        <input type="email" name="email" class="form-control">
                    </div>
                    <div class="col-sm-4">
                        <span class="help-block m-b-none">（用户邮箱，用于找回密码等安全操作）</span>
                    </div>
                </div>
                <div class="line line-dashed line-lg pull-in"></div>

                <div class="form-group">
                    <div class="col-sm-6 col-sm-offset-2">
                        <button type="submit" class="btn col-lg-2 m-r btn-info ajax-post " target-form="form-user">确定</button>
                        <button type="button" onclick="javascript:history.back(-1);return false;"  class="btn col-lg-2 m-r btn-primary">返回</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<include file="Public/footer"/>